#!/usr/bin/env python

'''\
INSTRUCTIONS:

Create plot of the sine and cosine functions for over an x-interval
from -2*pi to 2*pi.  Add axes labels "x" for the x-axis and
"sin(x), cos(x)" for the y-axis.

HINT: Run this script from  "ipython --pylab"  using  "%run ex01sincos.py"
'''


import numpy as np
import matplotlib.pyplot as plt

# clear the current figure
plt.clf()

# +++your code here+++
x = np.linspace(-np.pi, np.pi, 100)
sinx = np.sin(x)
cosx = np.cos(x)

plt.figure(1)
plt.plot(x,sinx)
plt.plot(x,cosx)
plt.xlabel('x')
plt.ylabel('sin(x), cos(x)')

# redraw and display the figure window
plt.draw()
plt.show()
